<?php

namespace DesignNew\Singleton;

final class President
{
    private static $instance;

    private function __construct()
    {
        //禁用魔术方法
    }

    public static function getInstance():President
    {
        if(!self::$instance) {
            self::$instance = new self();
        }
        return self::$instance;
    }

    private function __clone()
    {

    }

    private function __wakeup()
    {
        
    }
}